package com.jiaqiang.chatgpt.session;

import com.jiaqiang.chatgpt.domain.billing.BillingUsage;
import com.jiaqiang.chatgpt.domain.billing.CreditSummary;
import com.jiaqiang.chatgpt.domain.billing.Subscription;
import org.jetbrains.annotations.NotNull;

import java.time.LocalDate;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86187
 * Date: 2024-03-28
 * Time: 14:32
 */
public interface UserOpenAiSession {
    /**
     * 账单查询
     * 要用session key
     * @return 应答结果
     */
    Subscription subscription(String authorization);

    /**
     * 消耗查询
     * 要用session key
     * @param starDate 开始时间
     * @param endDate  结束时间
     * @return  应答数据
     */
    BillingUsage billingUsage(@NotNull LocalDate starDate, @NotNull LocalDate endDate);

    /**
     * 余额查询
     */
    CreditSummary billingCreditGrants();
}
